package com.example.emos.wx.dao;

import com.example.emos.wx.pojo.TbRole;
import org.mapstruct.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
* @author 12286
* @description 针对表【tb_role(角色表)】的数据库操作Mapper
* @createDate 2023-03-16 08:54:26
* @Entity com.example.emos.vx.pojo.TbRole
*/
@Mapper
public interface TbRoleDao {
    public ArrayList<HashMap> searchRoleOwnPermission(int id);

        public ArrayList<HashMap> searchAllPermission();
        public int insertRole(TbRole role);
        public int updateRolePermissions(TbRole role);


        public List<TbRole> searchAllRole();
        public long searchRoleUsersCount(int id);
        public int deleteRoleById(int id);


}




